package com.zhong.subject.application.convert;

import com.zhong.subject.application.dto.SubjectCategoryDTO;
import com.zhong.subject.domain.bo.SubjectCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //此注解为mapstruct包下的
public interface SubjectCategoryDTOConverter {
    SubjectCategoryDTOConverter INSTANCE = Mappers.getMapper(SubjectCategoryDTOConverter.class);
    SubjectCategoryBO convertDTOToBO(SubjectCategoryDTO subjectCategoryDTO);
    List<SubjectCategoryDTO> convertBoListToDTOList(List<SubjectCategoryBO> subjectCategoryBOList);
}
